Page({
    data: {
        // 搜索
        searchs: {
            icon: '/assets/img/search_01.png',
            searchVal: '',
            searchPL: "请输入搜索内容"
        },
        delIcon:'/assets/img/icon02@2x.png',
        historyList: wx.getStorageSync('search-history') ? wx.getStorageSync('search-history'): [],
    },
    onLoad: function (options) {

    },
    getInputVal(e){
        console.log(e.detail.value);
        // this.data.historyList.push(e.detail.value);
        // wx.setStorageSync('search-history', this.data.historyList);
    },
    clearHistory(){
        wx.removeStorageSync('search-history');
    }
});